#include "desktop.h"
#include <QGraphicsRectItem>
#include <desktopitem.h>
#include <QGraphicsView>

Desktop::Desktop(QWidget *parent)
    : QWidget{parent}
{



}



void Desktop::initDesktop()
{
    //创建桌面
    this->desktopScene=new QGraphicsScene();

    DesktopItem* desktopItem=new DesktopItem();
    desktopScene->addItem(desktopItem);
    QGraphicsView* view=new QGraphicsView(desktopScene);
    //view->setGeometry(0,0,1000,1000);
    view->show();

}

Desktop::~Desktop()
{
    delete desktopScene;
}






